package com.dts.yjnb.service.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dts.common.annotation.Excel;
import com.dts.common.core.domain.BaseEntity;
    
/**
 * 补贴政策对象 nb_allowance_policy
 *
 * @author jyn
 * @date 2024-09-29
 */
public class NbAllowancePolicy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 作者/来源 */
    @Excel(name = "作者/来源")
    private String authorSource;

    /** 文章摘要 */
    @Excel(name = "文章摘要")
    private String resume;

    /** 正文内容 */
    @Excel(name = "正文内容")
    private String content;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 发布状态：0:草稿, 1:已发布, 2:已下架 */
    @Excel(name = "发布状态：0:草稿, 1:已发布, 2:已下架")
    private Integer publishStatus;

    /** 是否推荐：0:否, 1:是 */
    @Excel(name = "是否推荐：0:否, 1:是")
    private Integer recommend;

    /** 浏览数量 */
    @Excel(name = "浏览数量")
    private Integer browseNum;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 开始时间（查询条件，非数据库字段） */
    private String beginTime;

    /** 结束时间（查询条件，非数据库字段） */
    private String endTime;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setAuthorSource(String authorSource)
    {
        this.authorSource = authorSource;
    }

    public String getAuthorSource()
    {
        return authorSource;
    }
    public void setResume(String resume)
    {
        this.resume = resume;
    }

    public String getResume()
    {
        return resume;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }
    public void setPublishStatus(Integer publishStatus)
    {
        this.publishStatus = publishStatus;
    }

    public Integer getPublishStatus()
    {
        return publishStatus;
    }
    public void setRecommend(Integer recommend)
    {
        this.recommend = recommend;
    }

    public Integer getRecommend()
    {
        return recommend;
    }
    public void setBrowseNum(Integer browseNum)
    {
        this.browseNum = browseNum;
    }

    public Integer getBrowseNum()
    {
        return browseNum;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }

    public String getBeginTime()
    {
        return beginTime;
    }

    public void setBeginTime(String beginTime)
    {
        this.beginTime = beginTime;
    }

    public String getEndTime()
    {
        return endTime;
    }

    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("authorSource", getAuthorSource())
            .append("resume", getResume())
            .append("content", getContent())
            .append("publishTime", getPublishTime())
            .append("publishStatus", getPublishStatus())
            .append("recommend", getRecommend())
            .append("browseNum", getBrowseNum())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
